﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_FriendLink_LinkManager : System.Web.UI.Page
{
    public List<Model.T_FriendLink> LinkList;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            Bind();
    }
    void Bind()
    { 
        int page = 0;
        int pages = 0;
        int len = 12;
        LinkList = DAL.FriendLink.GetList(page, len, ref pages);
    }
    /// <summary>
    /// 状态
    /// </summary>
    /// <param name="passed"></param>
    /// <returns></returns>
    public string State(int passed)
    {
        switch (passed)
        {
            case 0:
                return "通过";
            default:
                return "未通过";
        }
    }

    /// <summary>
    /// 类别
    /// </summary>
    /// <param name="passed"></param>
    /// <returns></returns>
    public string GType(int cat_id)
    {
        switch (cat_id)
        {
            case 1:
                return "图片链接";
            default:
                return "文字链接";
        }
    }
}